package com.example.common.provider2.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangjinlong
 * @date 2022/2/11 16:11
 */
@RestController
@RequestMapping("api/common/provider")
public class Provider2Controller {

    @Value("${api.common.config:0}")
    private Integer config;

    @GetMapping("get")
    public String get(){
        System.out.println("provider2...");
        return "hello I'm provider 2 config = " + config;
    }
}
